﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using control.Biz;

namespace control.Dal
{
    class DalTaiKhoan
    {
        internal static control.Biz.BizTaiKhoan GetBySoTk(string sotk)
        {
            var tks = from t in DalCommon.TrangSucDB.TaiKhoans
                      where t.SoTaiKhoan == sotk
                      select new BizTaiKhoan()
                       {
                           SoTK = t.SoTaiKhoan,
                           TaiKhoan = (decimal)t.TaiKhoan1
                       };
            return tks.FirstOrDefault<BizTaiKhoan>();
        }
    }
}
